﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<NMA.Web.Areas.Admin.Models.LogOnModel>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<% 
    NMA.Web.Core.ResourceFactory.IResourceFactory _resourceFactory = new NMA.Web.Core.ResourceFactory.NMAResourceFactory();
%>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>Login</title>
    <meta name="description" content="#" />
    <meta name="keywords" content="#" />
    <meta name="author" content="ThangChung" />
    <%--<link rel="icon" type="images/ico" href="/favicon.ico" />--%>
    <!-- CSS Declaration   -->
    <%= StaticContentHelper.RegisterCss("master.css") %>
    <%= StaticContentHelper.RegisterCss("print.css") %>	
    <%= StaticContentHelper.RegisterCss("login.css") %>	
    <%= StaticContentHelper.RegisterCssWithAbsolutePath("/Scripts/jquery/themes/cupertino", "jquery.ui.all.css")%> 
</head>
<body>
    <!-- CONTAINER -->
    <div id="container">
        <!-- HEADER -->
        <div id="header">
            <div id="logo">
                <h1>NMA Project</h1>
            </div>
        </div>
        <!-- BODY CONTENT-->
        <div id="maincontent">
            <!-- CONTENTS -->
            <div id="contents">
                <div id="logincontent">
                    <% using (Html.BeginForm("Index", "Account", FormMethod.Post, new { id = "formLogin", @class = "loginform"})) { %>
                    <div class="login-header">
                        <h3><%= _resourceFactory.AdminAccountLogon_GetUserLoginString()%></h3>
                    </div>
                    <div class="login-body">
                        <fieldset>
                            <div class="messages" style="display:none">
                                <div class="error"><%= Html.ValidationSummary() %></div>
                            </div>
                            <dl>
                                <dt>
                                    <!-- <label for="userName">User Name</label> -->
                                    <%= Html.LabelFor(m => m.UserName) %>
                                </dt>
                                <dd>
                                    <%= Html.TextBoxFor(m => m.UserName, new { @Class = "inputtext", @size = "50" })%>
                                    <!-- <input name="userName" id="userName" value="" type="text" class="inputtext" size="50" /> -->
                                </dd>
                            </dl>
                            <dl>
                                <dt>
                                    <!-- <label for="password">Password</label> -->
                                    <%= Html.LabelFor(m => m.Password) %>
                                </dt>
                                <dd>
                                    <!-- <input name="password" id="password" value="" type="password" size="50" class="inputtext" /> -->
                                    <%= Html.PasswordFor(m => m.Password, new { @Class = "inputtext", @size = "50" })%>
                                    <%= Html.ValidationMessageFor(m => m.Password)%>
                                    <div>
                                        <%--<%= Html.CheckBox("rememberMe", false, new { Class = "checkbox floatleft" })%>--%>
                                        <!-- <label for="rememberMe" class="floatleft inlinetext">Remember me</label> -->
                                        <%= Html.CheckBoxFor(m => m.RememberMe, new { Class = "checkbox floatleft" })%>
                                        <%= Html.LabelFor(m => m.RememberMe)%>
                                    </div>
                                    <br />
                                    <br />
                                </dd>
                            </dl>
                        </fieldset>
                        <fieldset>
                            <div class="floatleft" style="width: 80px;">
                                <div class="pributton left">
                                    <input id="btnLogin" name="btnLogin" type="submit" value="Login" class="rightbutton" /></div>
                            </div>
                        </fieldset>
                    </div>
                    <div class="login-footer">
                    </div>
                    <% } %>
                </div>
            </div>
        </div>
    </div>
</body>
</html>